<?php
class ForgotPasswordModel extends BaseModel
{
    /**
     * 根据email获取数据
     * @param string $email
     * @author ice <iceinto@mallog.com.cn>
     */
    public function getOneByEmail($email){
    	$map = array();
    	$map['email'] = $email;
    	return $this->getByWhere($map, '*');
    }
    
    /**
     * 根据key获取数据
     * @param string $email
     * @author ice <iceinto@mallog.com.cn>
     */
    public function getOneByKey($key){
    	$map = array();
    	$map['key'] = $key;
    	return $this->getByWhere($map, '*');
    }
}